import axios from '../axios.js'

export default {
    async getProducts() {
        return await axios({
            url: '/products/getProducts',
            method: 'get',
        })
    },

    //新增
    async addProducts(data) {
        return await axios({
            url: '/products/addProducts',
            method: "post",
            data
        })
    },
    async deleteProducts(data) {
        return await axios({
            url: '/products/deleteProducts',
            method: 'post',
            data
        })
    }
}